%div{:class=>'top_res'}
  %p{:class=>'onc_left',:onclick=>'jump_index()'}返回
  %span{:class=>'title_res'}餐厅管理
%ul{:class=>'listform'}
  %li{:class=>'list'}
    %h1{:class=>'font'}
      输入餐厅名：
%input{:id=>'R1',:type=>'text',:class=>'input'}
  %button{:onclick=>'save_R1("R1")',:class=>'button_style'}查询餐厅
%div
  %button{:onclick=>'jump_editRes()',:class=>'button_style'}增加餐厅

%div{:class=>'number'}
  %p{:class=>'font_list'}已有餐厅
-@restaurant.each do |h|
  %li{:class=>'rest_list'}
    %span{:class=>'word',:id=>h.id}
    =h.rest_name
    %p{:class=>'show_management'}
      =link_to '删除餐厅' , "/modification/destroy?id=#{h.id}"
      =link_to '修改餐厅' , "/modification/modifyRes?id=#{h.id}",:onclick=>"saveResId(#{h.id})"
      =link_to '管理菜品' , "/modification/dishes?rest_name=#{h.rest_name}",:onclick=>"save_R2(#{'"'+h.rest_name+'"'})"